package org.htzb.news.biz.impl;

import org.htzb.news.biz.NewsBiz;
import org.htzb.news.dao.NewsDao;
import org.htzb.news.dao.impl.NewDaoImpl;
import org.htzb.news.entity.News;

import java.util.List;

public class NewsBizImpl implements NewsBiz {
    NewsDao newsDao=new NewDaoImpl();
    @Override
    public List<News> getNews(String tname,int tid) throws Exception {
        return newsDao.getNews(tid);
    }
}
